<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="http://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <title>Document</title>

</head>

<body>
    <h1>Serverless</h1>
    <div id="app">
        <h2> {{ message + alternative }},现代文学

        </h2>
        <p v-html="innerContent">敌人变成战友多半是为了生存，战友变成敌人多半是为了金钱。</p>
        <img v-bind:src="imageSource" alt="alternative + message" v-on:click="show">

    </div>
    <script>
        var app = new Vue({
            el: "#app",
            data: {
                message: 'hello world!',
                innerContent: '<b>科比坚持篮球梦的精神</b>',
                imageSource: 'https://tse2-mm.cn.bing.net/th/id/OIP.NQxAeZQz6Vl7HtzaRRsAfwHaLG?w=182&h=273&c=7&o=5&pid=1.7',
                alternative: 'Lerna'
            },
            methods: {
                show: function () {
                    alert('hi')
                }

            }
        })
    </script>
</body>

</html>
